package cn.nyse.ktc_user.service;


import org.springframework.transaction.annotation.Transactional;
import wfw.cn.ktc_common.service.BaseService;
import cn.nyse.ktc_user.entity.User;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Page;
/**
 * @Description 用户 服务层接口
 * @author admin
 * @date 2020-10-14 17:34:43
*/
public interface UserService  extends BaseService<User,String> {
    List<User> findSearch(Map whereMap);

    Page<User> findSearch(Map whereMap, int page, int size);

    void add(User user);

    @Transactional
    void updateFollowCount(String userid, Integer count);

    @Transactional
    void updateFansCount(String userid, Integer count);

    void update(User user);

    void sendSms(String mobile);

    void insertUser(User user);

    void register(User user);

    Page<User> findPage(int page, int size);

    User login(String mobile, String password);

    User findo(String id);
}
